package com.only.webServer.content;

import com.only.webServer.request.HttpRequest;
import com.only.webServer.request.RequestUtils;

import java.util.Map;

public class DefaultHandle implements ContentTypeHandle{
    @Override
    public void handle(HttpRequest httpRequest, String body) {
        Map<String, String> pathParams = RequestUtils.getPathParams(body);
        httpRequest.setParameters(pathParams);
    }
}
